{
"id": 361,
"no": "00015",
"date": "2026-04-07",
"staff_id": 0,
"subscription_id": null,
"store_id": 1,
"type": 19,
"po_number": "26",
"client_id": 46,
"is_offline": 1,
"currency_code": "SAR",
"client_business_name": "Doaa Abdelfattah",
"client_first_name": null,
"client_last_name": null,
"client_email": "",
"client_address1": "",
"client_address2": null,
"client_postal_code": null,
"client_city": null,
"client_state": null,
"client_country_code": "SAR",
"payment_status": 2,
"draft": 0,
"discount": 0,
"due_after": 0,
"issue_date": "2026-04-07",
"summary_subtotal": 100,
"summary_discount": 0,
"summary_total": 100,
"summary_paid": 100,
"summary_unpaid": 0,
"terms_id": null,
"html_notes": "",
"created": "2026-04-08 13:55:37",
"modified": "2026-04-08 13:55:37",
"required_terms_file": 0,
"last_sent": null,
"invoice_layout_id": 9,
"estimate_id": 0,
"shipping_option_id": null,
"summary_refund": 0,
"client_active_secondary_address": 0,
"client_secondary_name": null,
"client_secondary_address1": "",
"client_secondary_address2": null,
"client_secondary_city": null,
"client_secondary_state": null,
"client_secondary_postal_code": null,
"client_secondary_country_code": null,
"follow_up_status": null,
"source_type": null,
"source_id": null,
"sales_person_id": -3,
"extra_details": "{\"client_balance\":100,\"invoice_version\":2}",
"discount_amount": 0,
"shipping_amount": null,
"work_order_id": null,
"item_columns": "",
"branch_id": 1,
"requisition_delivery_status": null,
"item_discount_amount": 0,
"pos_shift_id": null,
"requisitions": [],
"adjustment_label": null,
"adjustment_value": null,
"order_source_id": null,
"store": {
"id": 1,
"name": "Primary Warehouse",
"active": 1
},
"clients": {
"id": 46,
"group_price_id": null,
"is_offline": 1,
"client_number": "*DSR202645",
"staff_id": -3,
"business_name": "Doaa Abdelfattah",
"first_name": null,
"last_name": null,
"email": null,
"password": null,
"address1": "",
"address2": null,
"city": null,
"state": null,
"postal_code": null,
"phone1": "+966547895120",
"phone2": null,
"country_code": null,
"notes": null,
"active_secondary_address": 0,
"secondary_name": null,
"secondary_address1": "",
"secondary_address2": null,
"secondary_city": null,
"secondary_state": null,
"secondary_postal_code": null,
"secondary_country_code": null,
"language_code": null,
"default_currency_code": null,
"last_login": null,
"suspend": 0,
"last_ip": null,
"created": "2026-03-31 12:32:06",
"modified": "2026-03-31 12:32:06",
"follow_up_status": null,
"category": "",
"bn1": null,
"bn1_label": null,
"bn2_label": null,
"bn2": null,
"starting_balance": null,
"photo": null,
"birth_date": null,
"gender": null,
"map_location": null,
"type": 2,
"credit_limit": 0,
"credit_period": 0,
"branch_id": 1,
"national_id": null,
"attachment": null,
"category_id": null,
"secondary_follow_up_status": null,
"timezone": 0,
"tags": null,
"assigned_users": null
},
"branch": {
"id": 1,
"name": "Main Branch",
"status": 1,
"created": "2024-12-10 09:33:10",
"modified": "2024-12-10 09:33:10"
},
"payment": [
{
"invoice_id": 361,
"client_id": null,
"payment_method": "cash",
"amount": 100,
"transaction_id": "",
"date": "2026-04-07 00:00:00",
"email": null,
"status": 1,
"notes": null,
"response_code": null,
"response_message": null,
"created": "2026-04-08 13:55:39",
"currency_code": "SAR",
"first_name": null,
"last_name": null,
"address1": "",
"address2": null,
"city": null,
"state": null,
"postal_code": null,
"country_code": "SAR",
"phone1": "+966547895120",
"phone2": null,
"attachment": null,
"staff_id": -3,
"payment_work_order_id": null,
"treasury_id": 1,
"pos_shift_id": null,
"receipt_notes": null,
"extra_details": null,
"branch_id": 1,
"id": 156,
"added_by": 1
}
],
"invoice_item": [
{
"invoice_id": 361,
"item": "خدمة",
"description": "",
"unit_price": 100,
"quantity": 1,
"tax1": 0,
"tax2": 0,
"product_id": 112,
"col_3": "",
"col_4": "",
"col_5": null,
"discount": null,
"discount_type": null,
"store_id": 1,
"unit_factor": null,
"unit_small_name": null,
"unit_name": null,
"display_order": 0,
"summary_tax1": 0,
"summary_tax2": 0,
"col_6": null,
"col_7": null,
"col_8": null,
"created": "2026-04-08 13:55:38",
"modified": "2026-04-08 13:55:38",
"unit_factor_id": null,
"offer_id": null,
"tracking_data": "{\"lot\": null, \"serial\": null, \"expiry_date\": null}",
"serials": null,
"extra_details": null,
"calculated_discount": 0,
"subtotal": 100,
"id": 556,
"sales_account_id": null,
"cost_center_id": null,
"sales_person_id": null
}
],
"invoice_documents": [],
"invoice_custom_fields": [],
"invoice_client": {
"id": 46,
"group_price_id": null,
"is_offline": 1,
"client_number": "*DSR202645",
"staff_id": -3,
"business_name": "Doaa Abdelfattah",
"first_name": null,
"last_name": null,
"email": null,
"password": null,
"address1": "",
"address2": null,
"city": null,
"state": null,
"postal_code": null,
"phone1": "+966547895120",
"phone2": null,
"country_code": null,
"notes": null,
"active_secondary_address": 0,
"secondary_name": null,
"secondary_address1": "",
"secondary_address2": null,
"secondary_city": null,
"secondary_state": null,
"secondary_postal_code": null,
"secondary_country_code": null,
"language_code": null,
"default_currency_code": null,
"last_login": null,
"suspend": 0,
"last_ip": null,
"created": "2026-03-31 12:32:06",
"modified": "2026-03-31 12:32:06",
"follow_up_status": null,
"category": "",
"bn1": null,
"bn1_label": null,
"bn2_label": null,
"bn2": null,
"starting_balance": null,
"photo": null,
"birth_date": null,
"gender": null,
"map_location": null,
"type": 2,
"credit_limit": 0,
"credit_period": 0,
"branch_id": 1,
"national_id": null,
"attachment": null,
"category_id": null,
"secondary_follow_up_status": null,
"timezone": 0,
"tags": null,
"assigned_users": null
},
"invoice_layout": {
"id": 9,
"field1": "Bill To:",
"field2": "",
"field3": "",
"field4": "",
"field5": "",
"image": null,
"staff_id": 0,
"html": "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n\t<head>\r\n\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\r\n\t\t<title>Invoice Template</title>\r\n\t</head>\r\n\t<style type=\"text/css\">\r\n\t\t*{ margin:0; padding:0;}\r\n\t\tbody{ background:transparent; font:12px Arial, Helvetica, sans-serif }\r\n\t\t.invoice-wrap{ width:660px; margin:0 auto; background:#FFF; color:#000}\r\n\t\t.invoice-inner{ margin:0 30px; padding:20px 0}\r\n\t\t.invoice-address{border-top: 3px double #000000; margin: 35px 0; padding-top: 25px;}\r\n\t\t bold_title {font-weight:bold;}\r\n\t\t big_title{ font-size:18px; font-weight:100}\r\n\t\t.bussines-name{ font-size:18px; font-weight:100}\r\n\t\t.invoice-name{font-size:22px; font-weight:700}\r\n\t\t.listing-table th{background-color: #e5e5e5;border-bottom: 1px solid #555555;border-top: 1px solid #555555;font-weight: bold; text-align:left; padding:6px 4px}\r\n\t\t.listing-table td{border-bottom: 1px solid #555555; text-align:left; padding:5px 6px; vertical-align:top}\r\n\t\t.total-table td{ border-left: 1px solid #555555;}\r\n\t\t.total-row{ background-color: #e5e5e5;border-bottom: 1px solid #555555;border-top: 1px solid #555555;font-weight: bold;}\r\n\t\t.row-items{ margin:5px 0; display:block}\r\n\t\t.notes-block{ margin:50px 0 0 0}\r\n\t\r\ntr, td, th {\r\n page-break-inside: avoid !important;\r\n} \r\n \r\n.qr-code img {margin-top:10px}\r\n</style>\r\n\t<body>\r\n\t\t<div class=\"invoice-wrap\">\r\n{%html_sticky_header%}\r\n\t\t\t<div class=\"invoice-inner\">\r\n\t\t\t\t<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td align=\"left\" valign=\"top\">\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t<img id=\"logo\" class='editable-area' src=\"{%logo%}\" width=\"{%logo-width%}\" height=\"{%logo-height%}\"/> \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t<td align=\"left\" valign=\"top\" >\r\n\t\t\t\t\t\t\t<div id=\"business_info\" class='editable-area'>\r\n\t\t\t\t\t\t\t\t{%business_info%}\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t<td valign=\"top\" align=\"right\">\r\n\t\t\t\t\t\t\t\t<p id=\"invoice_title\" class=\"editable-area invoice-name\">{%invoice_title%}</p><div class=\"qr-code\">\r\n{%sa_qr_code_image%}<br/>\r\n</div>\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t</table>\r\n\r\n\t\t\t\t<div class=\"invoice-address\">\r\n\t\t\t\t\t<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t<td width=\"50%\" align=\"left\" valign=\"top\">\r\n\t\t\r\n\t\t\t<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n\t\t\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t\t\t<td valign=\"top\" style=\"float: left;\" ><strong id=\"field1\" class='editable-area'>{%field1%}</strong></td>\r\n\t\t\t\t\t\t\t\t\t\t<td style=\"padding-left:20px;\" valign=\"top\"><div id=\"client_info\" class='editable-area'>{%client_info%}</div></td>\r\n\t\t\t\t\t\t\t\t\t</tr>\r\n<tr id=\"shipping_options\" style=\"display:none;\">\r\n\t\t\t\t\t\t\t\t\t\t<td valign=\"top\" style=\"float: left;\" ><br/><strong id=\"label_ship\" class='editable-area'>{%label_ship%}</strong></td>\r\n\t\t\t\t\t\t\t\t\t\t<td style=\"padding-left:20px;\" valign=\"top\"><br/><div id=\"ship_info\" class='editable-area'>{%ship_info%}</div></td>\r\n\t\t\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t\t</table>\r\n\t\t\t\t\t\t\t</td>\r\n<td width=\"50%\" valign=\"top\" align=\"right\" >\r\n<table id=\"invoice_basics\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"right\" >\r\n\r\n<tr>\r\n<td align=\"right\"><strong class=\"editable-area\" id=\"label_invoice_no\">{%label_invoice_no%}</strong></td>\r\n<td style=\"padding-left:20px;\" align=\"left\" >{%invoice_number%}\r\n</td>\r\n</tr>\r\n<tr {%refund_invoice_number_condition%}>\r\n <td align=\"right\"><strong class=\"editable-area\" id=\"refund_label_invoice_no\">{%refund_invoice_no_title%}</strong></td>\r\n <td style=\"padding-left:20px;\" align=\"left\" >{%refund_invoice_number%}</td>\r\n </tr>\r\n<!-- InvoiceDate -->\r\n<tr>\r\n<td align=\"right\" ><strong class=\"editable-area\" id=\"label_date\">{%label_date%}</strong></td>\r\n<td style=\"padding-left:20px;\" align=\"left\" >{%invoice_date%}\r\n</td>\r\n</tr>\r\n<!-- /InvoiceDate -->\r\n\r\n</table>\r\n<custom_field id=\"custom_fields\" style=\"clear:both\" class='editable-area' border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"right\">\r\n{%custom_fields%}\r\n</custom_field>\r\n\r\n\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t</table>\r\n\t\t\t\t</div>\t \r\n\r\n\t\t\t\t<div id=\"items-list\">\r\n\t\t\t\t\t\t{%items_list%}\r\n\t\t\t\t</div>\r\n\r\n\t\t\t\t<div class=\"notes-block\">\r\n\t\t\t\t\t<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t<td>\r\n <div style=\"font-style:italic\" class=\"editable-area\" id=\"footer\">{%footer%}</div>\r\n </td>\r\n\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t</table>\r\n\r\n\t\t\t\t</div>\r\n\t\t\t\t<br />\r\n\r\n\t\t\t</div>\r\n{%html_sticky_footer%}\r\n\t\t</div>\r\n\t</body>\r\n</html>",
"invoice_title": "Invoice",
"estimate_title": "Estimate",
"creditnote_title": "Credit Note",
"business_info": "<bold_title>{%business_name%}</bold_title>\r\n{%address1%}\r\n{%city%}، {%state%} {%postal_code%}\r\n{%phone1%}\r\n",
"logo": "{%logo_site%}",
"client_info": "{%client_organization%}\r\n{%client_first_name%} {%client_last_name%}\r\n{%client_address%}\r\n{%client_city%} {%client_state%} {%client_postcode%}\r\n{%client_business_registration_info1%} {%client_business_registration_info2%}",
"label_invoice_no": "Invoice No",
"label_date": "Invoice Date",
"label_po_no": "Po No",
"label_total": "Total",
"label_status": "Status",
"label_due_days": "Due After",
"label_due_date": "Due Date",
"label_deposit": "Next Payment",
"label_paid_amount": "Paid",
"label_unpaid_amount": "Balance Due",
"label_subtotal": "Subtotal",
"label_description": "Description",
"label_item": "Item",
"label_tax1": null,
"label_tax2": null,
"label_quantity": "Quantity",
"label_unit_price": "Unit Price",
"label_item_total": "Item Total",
"label_from_date": "From Date",
"label_to_date": "To Date",
"label_discount": "Discount",
"items_list": "<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\" id=\"listing_table\" class=\"listing-table total-table\" style=\" \">\r\n<tr>\r\n<th width=\"\" bgcolor=\"#e5e5e5\" class=\"editable-area\" id=\"label_item\">{%label_item%}</th>\r\n<!-- Description --><th width=\"250\" bgcolor=\"#e5e5e5\" class=\"editable-area\" id=\"label_description\">{%label_description%}</th><!-- /Description -->\r\n<th width=\"60\" bgcolor=\"#e5e5e5\" class=\"editable-area\" id=\"label_unit_price\">{%label_unit_price%}</th>\r\n<th width=\"30\" bgcolor=\"#e5e5e5\" class=\"editable-area\" id=\"label_quantity\">{%label_quantity%}</th>\r\n<th width=\"80\" bgcolor=\"#e5e5e5\" class=\"editable-area\" id=\"label_subtotal\">{%label_subtotal%}</th>\r\n</tr>\r\n<list_items>\r\n{%items%}\r\n</list_items>\r\n<!-- Subtotal --><tr>\r\n\t\t\t\t\t\t\t\t<td style=\"border:none;\" bgcolor=\"#FFF\" colspan=\"{%cols%}\"></td><td style=\"border-left:none;border-right:none;\" colspan=\"2\" ><strong class=\"editable-area\" id=\"label_item_total\">{%label_item_total%}</strong></td>\r\n\t\t\t\t\t\t\t\t<td style=\"border-left:none;border-right:none;\" align=\"left\">{%value_item_total%}</td>\r\n\t\t\t\t\t\t\t</tr><!-- /Subtotal -->\r\n{%invoice-taxes%}\r\n<tr class=\"total-row\">\r\n<td style=\"border:none;\" bgcolor=\"#FFF\" colspan=\"{%cols%}\"></td>\t\t\t\t\t\t\t\t<td style=\"border-left:none;border-right:none;\" colspan=\"2\" ><h4><strong class=\"editable-area\" id=\"label_total\">{%label_total%}</strong></h4></td>\r\n\t\t\t\t\t\t\t\t<td style=\"border-left:none;border-right:none;\" align=\"left\">{%value_total%}</td>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t<!-- PaidAmount -->\r\n<tr>\r\n<td style=\"border:none;\" bgcolor=\"#FFF\" colspan=\"{%cols%}\"></td>\t\t\t\t\t\t\t\t<td style=\"border-left:none;border-right:none;\" colspan=\"2\" ><strong class=\"editable-area\" id=\"label_paid_amount\">{%label_paid_amount%}</strong></td>\r\n\t\t\t\t\t\t\t\t<td style=\"border-left:none;border-right:none;\" align=\"left\">{%value_paid_amount%}</td>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t<tr>\r\n<td style=\"border:none;\" bgcolor=\"#FFF\" colspan=\"{%cols%}\"></td>\t\t\t\t\t\t\t\t<td style=\"border-left:none;border-right:none;\" colspan=\"2\" ><strong class=\"editable-area\" id=\"label_unpaid_amount\">{%label_unpaid_amount%}</strong></td>\r\n\t\t\t\t\t\t\t\t<td style=\"border-left:none;border-right:none;\" align=\"left\">{%value_unpaid_amount%}</td>\r\n\t\t\t\t\t\t\t</tr>\r\n<!-- /PaidAmount -->\t\t\t\t\t\t</table>\r\n\t\t\t\t\t\t<div style=\"clear:both; height:1px;\"> </div>",
"custom_fields": "<tr>\r\n\t<td align=\"right\"><strong class='custom-field-label'>{%label%}</strong></td>\r\n\t<td style=\"padding-left:20px;\" align=\"left\" class='custom-field-value'>{%value%}</td>\r\n</tr>",
"template_id": 1,
"footer": "{%invoice_notes%}",
"created": "2025-07-22 17:29:53",
"default": 0,
"default_estimate": 0,
"default_creditnote": 0,
"default_refundreceipt": 0,
"simple_item_currency": 1,
"show_balance_due": 1,
"show_ship": 0,
"label_ship": "Ship To:",
"ship_info": "{%client_secondary_name%}\r\n{%client_secondary_address%}\r\n{%client_secondary_city%}, {%client_secondary_state%} {%client_secondary_postcode%}",
"language_id": 41,
"label_shipping": "Shipping",
"item_columns": "",
"footer_html": null,
"css_style": null,
"view_style": "{\"font_size\":\"\",\"font_file\":\"\",\"font_variant\":\"\",\"font_name\":\"\",\"font_family\":\"\",\"paper_size\":\"a4\",\"paper_width\":\"\",\"paper_height\":\"\",\"border_color\":\"\",\"header_text_color\":\"\",\"header_bg_color\":\"\",\"odd_bg_color\":\"\",\"even_bg_color\":\"\",\"extra_css\":\"\",\"margin_top\":\"\",\"margin_bottom\":\"\",\"margin_left\":\"\",\"margin_right\":\"\"}",
"label_creditnote_no": "Credit Note No",
"label_creditnote_to": null,
"label_creditnote_date": "Credit Note Date",
"label_estimate_no": "Estimate No",
"label_estimate_date": "Estimate Date",
"refundreceipt_title": "Refund Receipt",
"quantity_price": "",
"label_refundreceipt_no": "Refund Receipt No",
"label_refundreceipt_date": "Refund Date",
"label_to": "To",
"label_refunded": "Refunded",
"alt_template": 0,
"layout_type": 0,
"sticky_footer": "",
"sticky_header": "",
"default_purchase_refund": 0,
"default_purchase_order": 0,
"branch_id": 1,
"purchase_order_title": null,
"default_width": 200,
"default_height": 0,
"min_width": 0,
"min_height": 0,
"max_width": 458,
"max_height": 200,
"name": "Template1 English"
},
"invoice_installment_agreements": [],
"invoice_requisitions": [],
"journal_account_route": [],
"invoice_appointments": [],
"staff": null,
"work_orders": null,
"pos_shifts": null,
"invoice_source_order": null,
"custom_data": null
}