- In a custom module in modules/modulename/vardefs.php file and localization file (/en-us.lang.php) define the fields and relationships (AOS_Products_Quotes and AOS_Line_Item_Groups):
āLBL_IMPORT_LINE_ITEMSā
āLBL_LINE_ITEMSā
āLBL_GRAND_TOTALā
āLBL_TOTAL_AMTā
āLBL_TAX_AMOUNTā
āLBL_SUBTOTAL_AMOUNTā
āLBL_SHIPPING_AMOUNTā
āLBL_SHIPPING_TAX_AMTā
āLBL_DISCOUNT_AMOUNTā
āLBL_ADD_PRODUCT_LINEā
āLBL_ADD_SERVICE_LINEā
āLBL_REMOVE_PRODUCT_LINEā
āLBL_SERVICE_NAMEā
āLBL_SERVICE_LIST_PRICEā
āLBL_SERVICE_PRICEā
āLBL_SERVICE_DISCOUNTā
āLBL_VAT_AMTā
āLBL_TOTAL_PRICEā
āLBL_PRODUCT_QUANITYā
āLBL_PRODUCT_NAMEā
āLBL_PART_NUMBERā
āLBL_PRODUCT_NOTEā
āLBL_PRODUCT_DESCRIPTIONā
āLBL_LIST_PRICEā
āLBL_DISCOUNT_AMTā
āLBL_UNIT_PRICEā
āLNK_LISTā
My custom module name: acts_company_acts
This fields and relationships copy from AOS Invoices (vardefs.php) (By changing the name of the module to yours ).
-
Copy from AOS_Invoices.php function ( public function save($check_notify = false)) to you custom module main class (my class āacts_company_acts extends Basicā)
-
Copy PANNEL settings edit view, detail view and panel view from AOS_Invoices to (custom/modules/custommodules/metadata/editviewdefs.php, custom/modules/custommodules/metadata/detailviewdefs.php)
-
Repair and Rebuild (with updating database fields)
Everything should work.