Skip to content

How to set Invoice Tax percentage #332

@mukkaramwaheed

Description

@mukkaramwaheed

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions