Code Monkey home page Code Monkey logo

holoowebservice's Introduction

HolooWebService

PHP Webservice Client for Holoo accounting(Torfenagar) and financial software(holoo.co.ir)

وب‌سرویس هلو

کلاینت PHP وب‌سرویس نرم‌افزار حسابداری و مالی هلو(طرفه‌نگار) (holoo.co.ir)

توضیحات

این پکیج بر اساس توضیحات راهنمای اتصال به وب‌سرویس هلو در حال تکمیل شدن می‌باشد.

نصب و راه اندازی

composer require zoghal/holoo-client

نحوه استفاده

<?php
require 'vendor/autoload.php';

use HolooClient\Holoo;
use HolooClient\Customer;
use HolooClient\Invoice;
use HolooClient\Product;

Holoo::config('http://server-ip:8080/TncHoloo/api/','DB Name','UserName','PassWord');
Holoo::login();


$user = Customer::GetCustomer();
$user = Customer::GetCustomer(["Code" => 2756]);
$user = Customer::GetCustomerCount();
$user = Customer::NewCustomer([
    'custifno' => [
        'name' => 'صالح سوزنچی',
        'ispurchaser' => true,
        'isseller' => true,
        'custtype' => true,
    ]
]);

$user = Customer::EditCustomer([
    'custifno' => [
        'erpcode=' => 'bBAPNA12dg0=',   
        'isblacklist' => true,
        'nationalid' => '38700011122',
    ]
]);

print_r($user);
$invioces= Invoice::GetInvoiceList();
$invioces= Invoice::GetInvoiceList(['Code'=>123]);
$invioces= Invoice::GetInvoiceList(['type'=>4]);
print_r($invioces);

$invioces = Invoice::NewInvoice([
    'invoiceinfo' => [
        'id' => '978',
        'type' => '1',
        'customererpcode' => 'bBAPcw12cg0=',
        'date' => date('Y-m-d'),
        'time' => date("H:i:s") ,
        'Nesiyeh' => '21000',
        'comment' => 'یک فاکتور جدید',
        'detailinfo' => [
            [
                'id' => '1',
                'ProductErpCode' => 'bBALNA1mckd7QB4O',
                'few' => '1',
                'price' => '1000',
                'Comment' => 'توضیحاتی مرتبط با یک محصول خریداری شده'
            ],
            [
                'id' => '2',
                'ProductErpCode' => 'bBALNA1mckd5dh4O',
                'few' => '2',
                'price' => '10000',
                'Comment' => 'ثبت دامنه | gogoliMagooli.miomio'
            ]
        ]
    ]
]);
print_r($invioces);
$preInvioces = Invoice::GetPreInvoiceList();

$preInvioces = Invoice::NewPreInvoice([
    'invoiceinfo' => [
        'id' => '978',
        'customererpcode' => 'bBAPcw12cg0=',
        'date' => date('Y-m-d'),
        'time' => date("H:i:s") ,
        'comment' => 'یک پیش فاکتور جدید',
        'detailinfo' => [
            [
                'id' => '001',
                'ProductErpCode' => 'bBALNA1mckd7QB4O',
                'few' => '1',
                'price' => '1000',
                'Comment' => 'توضیحاتی مرتبط با یک محصول خریداری شده'
            ],
            [
                'id' => '002',
                'ProductErpCode' => 'bBALNA1mckd5dh4O',
                'few' => '21',
                'price' => '10000',
                'Comment' => 'ثبت دامنه | gogoliMagooli.miomio'
            ]
        ]
    ]
]);
print_r($preInvioces);
$product = Product::GetMainGroup();
$product = Product::GetSideGroup();
$product = Product::GetUnit();
print_r($product);

$product= Product::GetProduct();
$product= Product::GetProduct(['Code'=>64]);
$product = Product::GetProduct(['MainGroupErpCode' => 'bBALfg==']); // bug
$product= Product::GetProductCount();
print_r($product);


$product = Product::NewProduct([
    'productinfo' => [
        'sidegroupErpcode' => 'bBALNA1jDg0=',
        'name' => 'saleh402'
    ]
]);

$product = Product::EditProduct([
    'productinfo' => [
        'erpcode' => 'bBALNA1mcgF7UB4O',
        'name' => 'محصول ادیت شده'
    ]
]);
print_r($product);

holoowebservice's People

Contributors

mohammad6006 avatar renovate-bot avatar renovate[bot] avatar zoghal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

holoowebservice's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

composer
composer.json
  • guzzlehttp/guzzle 7.8.1

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.