Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set Invoice Tax percentage #332

Open
mukkaramwaheed opened this issue Sep 18, 2024 · 0 comments
Open

How to set Invoice Tax percentage #332

mukkaramwaheed opened this issue Sep 18, 2024 · 0 comments

Comments

@mukkaramwaheed
Copy link

mukkaramwaheed commented Sep 18, 2024

How to set the invoice sales tax percentage through PHP code? I set the Tax Name with code but could not find any solution to set this percentage. I could not find any methods which set the percentage as well.

When querying the invoice record, the sales tax amount appears in the code below. However, I couldn’t find any field in this package where I can set the tax percentage.


$quickbooks_invoice = new \QuickBooks_QBXML_Object_Invoice();
$quickbooks_invoice_line->setTaxable();

$quickbooks_invoice->setSalesTaxItemFullName($sales_tax_item_name); //NJ Sales Tax

//HOW TO SET PERCENTAGE??
$quickbooks_invoice->setRatePercent(5);
OR
$quickbooks_invoice->setsalesTaxPercentage(5);




In XML SaleTaxPercentage shown in below tag

<SalesTaxPercentage>0.00</SalesTaxPercentage>

image

Does anyone know how to set this value?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant