core-jgi/migration/iD10/postgresql/202210281534_IDEMPIERE-5057...

28 lines
110 KiB
MySQL
Raw Normal View History

-- IDEMPIERE-5057 Implement Deductible and non deductible input tax for purchasing and costing
SELECT register_migration_script('202210281534_IDEMPIERE-5057.sql') FROM dual;
-- Oct 28, 2022, 3:34:01 PM CEST
UPDATE AD_ViewColumn SET ColumnSQL='999998',Updated=TO_TIMESTAMP('2022-10-28 15:34:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ViewColumn_ID=206404
;
-- Oct 28, 2022, 3:34:11 PM CEST
UPDATE AD_ViewColumn SET ColumnSQL='999999',Updated=TO_TIMESTAMP('2022-10-28 15:34:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ViewColumn_ID=206782
;
-- Oct 28, 2022, 3:34:34 PM CEST
UPDATE AD_ViewColumn SET ColumnSQL='999998',Updated=TO_TIMESTAMP('2022-10-28 15:34:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ViewColumn_ID=207916
;
-- Oct 28, 2022, 3:34:42 PM CEST
UPDATE AD_ViewColumn SET ColumnSQL='999999',Updated=TO_TIMESTAMP('2022-10-28 15:34:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ViewColumn_ID=208294
;
-- Oct 28, 2022, 3:35:17 PM CEST
CREATE OR REPLACE VIEW C_Order_LineTax_v(AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, AD_Language, C_Order_ID, C_OrderLine_ID, C_Tax_ID, TaxIndicator, C_BPartner_ID, C_BPartner_Location_ID, BPName, C_Location_ID, Line, M_Product_ID, VendorProductNo, QtyOrdered, QtyEntered, UOMSymbol, Name, Description, DocumentNote, UPC, SKU, ProductValue, ResourceDescription, PriceList, PriceEnteredList, Discount, PriceActual, PriceEntered, LineNetAmt, ProductDescription, ImageURL, C_Campaign_ID, C_Project_ID, C_Activity_ID, C_ProjectPhase_ID, C_ProjectTask_ID, C_OrderLine_AD_OrgTrx_ID, C_OrderLine_C_Charge_ID, C_OrderLine_C_Currency_ID, C_UOM_ID, DateDelivered, DateInvoiced, DateOrdered, c_orderline_datepromised, c_orderline_freightamt, IsDescription, Link_OrderLine_ID, M_Promotion_ID, C_OrderLine_M_Shipper_ID, C_OrderLine_M_Warehouse_ID, PriceCost, PriceLimit, c_orderline_processed, QtyDelivered, QtyInvoiced, QtyLostSales, QtyReserved, Ref_OrderLine_ID, RRAmt, RRStartDate, S_ResourceAssignment_ID, C_OrderLine_User1_ID, C_OrderLine_User2_ID, C_UOM_AD_Org_ID, CostingPrecision, c_uom_description, c_uom_isactive, IsDefault, c_uom_name, StdPrecision, UOMType, X12DE355, C_Order_AD_Org_ID, C_Order_AD_OrgTrx_ID, AD_User_ID, AmountRefunded, AmountTendered, Bill_BPartner_ID, Bill_Location_ID, Bill_User_ID, C_Order_C_Activity_ID, C_Order_C_BPartner_ID, C_Order_C_Campaign_ID, C_CashLine_ID, C_CashPlanLine_ID, C_Order_C_Charge_ID, C_ConversionType_ID, C_Order_C_Currency_ID, C_DocType_ID, C_DocTypeTarget_ID, ChargeAmt, CopyFrom, C_Payment_ID, C_PaymentTerm_ID, C_POS_ID, C_Order_C_Project_ID, c_order_created, C_Order_CreatedBy, DateAcct, DatePrinted, c_order_datepromised, DeliveryRule, DeliveryViaRule, c_order_description, DocAction, DocStatus, DocumentNo, DropShip_BPartner_ID, DropShip_Location_ID, DropShip_User_ID, c_order_freightamt, FreightCostRule, GrandTotal, InvoiceRule, c_order_isactive, IsApproved, IsCreditApproved, IsDelivered, c_order_isdiscountprinted, c_order_isdropship, IsInvoiced, IsPayScheduleValid, IsPrinted, IsSelected, c_order_isselfservice, IsSOTrx, IsTaxIncluded, IsTransferred, Link_Order_ID, C_Order_M_FreightCategory_ID, C_Order_M_PriceList_ID, C_Order_M_Shipper_ID, C_Order_M_Warehouse_ID, OrderType, Pay_BPartner_ID, Pay_Location_ID, c_order_paymentrule, POReference, Posted, PriorityRule, c_order_processed, ProcessedOn, PromotionCode, Ref_Order_ID, SalesRep_ID, c_order_sendemail, TotalLines, c_order_updated, C_Order_UpdatedBy, C_Order_User1_ID, C_Order_User2_ID, c_order_volume, c_order_weight, M_Product_AD_Org_ID, Classification, m_product_copyfrom, m_product_created, M_Product_CreatedBy, C_RevenueRecognition_ID, C_SubscriptionType_ID, C_TaxCategory_ID, M_Product_C_UOM_ID, DescriptionURL, m_product_discontinued, m_product_discontinuedat, Group1, Group2, GuaranteeDays, GuaranteeDaysMin, Help, m_product_isactive, IsBOM, m_product_isdropship, IsExcludeAutoDelivery, IsInvoicePrintDetails, IsPickListPrintDetails, IsPurchased, m_product_isselfservice, IsSold, IsStocked, m_product_issummary, IsVerified, IsWebStoreFeatured, LowLevel, M_AttributeSet_ID, M_AttributeSetInstance_ID, M_Product_M_FreightCategory_ID, M_Locator_ID, M_Product_Product_Category_ID, m_product_processing, ProductType, R_MailText_ID, M_Product_SalesRep_ID, S_ExpenseType_ID, ShelfDepth, ShelfHeight, ShelfWidth, S_Resource_ID, UnitsPerPack, UnitsPerPallet, m_product_updated, M_Product_UpdatedBy, VersionNo, m_product_volume, m_product_weight, M_Product_PO_AD_Org_ID, M_Product_PO_C_BPartner_ID, M_Product_PO_C_Currency_ID, CostPerOrder, m_product_po_created, M_Product_PO_CreatedBy, M_Product_PO_C_UOM_ID, DeliveryTime_Actual, DeliveryTime_Promised, m_product_po_discontinued, m_product_po_discontinuedat, m_product_po_isactive, IsCurrentVendor, m_product_po_manufacturer, M_Product_PO_M_Product_ID, Order_Min, Order_Pack, PriceEffective, PriceLastInv, PriceLastPO, m_product_po_pricelist, PricePO, m_product_po_qualityrating, RoyaltyAmt, m_product_po_upc, m_product_po_updated, M_Product_PO_UpdatedBy, m_product_po_vendorcategory, S_ResourceAssignme
;
-- Oct 28, 2022, 3:35:27 PM CEST
CREATE OR REPLACE VIEW C_Order_LineTax_vt(AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, AD_Language, C_Order_ID, C_OrderLine_ID, C_Tax_ID, TaxIndicator, C_BPartner_ID, C_BPartner_Location_ID, BPName, C_Location_ID, Line, M_Product_ID, VendorProductNo, QtyOrdered, QtyEntered, UOMSymbol, Name, Description, DocumentNote, UPC, SKU, ProductValue, ResourceDescription, PriceList, PriceEnteredList, Discount, PriceActual, PriceEntered, LineNetAmt, ProductDescription, ImageURL, C_Campaign_ID, C_Project_ID, C_Activity_ID, C_ProjectPhase_ID, C_ProjectTask_ID, C_OrderLine_AD_OrgTrx_ID, C_OrderLine_C_Charge_ID, C_OrderLine_C_Currency_ID, C_UOM_ID, DateDelivered, DateInvoiced, DateOrdered, c_orderline_datepromised, c_orderline_freightamt, IsDescription, Link_OrderLine_ID, M_Promotion_ID, C_OrderLine_M_Shipper_ID, C_OrderLine_M_Warehouse_ID, PriceCost, PriceLimit, c_orderline_processed, QtyDelivered, QtyInvoiced, QtyLostSales, QtyReserved, Ref_OrderLine_ID, RRAmt, RRStartDate, S_ResourceAssignment_ID, C_OrderLine_User1_ID, C_OrderLine_User2_ID, C_UOM_AD_Org_ID, CostingPrecision, c_uom_description, c_uom_isactive, IsDefault, c_uom_name, StdPrecision, UOMType, X12DE355, C_Order_AD_Org_ID, C_Order_AD_OrgTrx_ID, AD_User_ID, AmountRefunded, AmountTendered, Bill_BPartner_ID, Bill_Location_ID, Bill_User_ID, C_Order_C_Activity_ID, C_Order_C_BPartner_ID, C_Order_C_Campaign_ID, C_CashLine_ID, C_CashPlanLine_ID, C_Order_C_Charge_ID, C_ConversionType_ID, C_Order_C_Currency_ID, C_DocType_ID, C_DocTypeTarget_ID, ChargeAmt, CopyFrom, C_Payment_ID, C_PaymentTerm_ID, C_POS_ID, C_Order_C_Project_ID, c_order_created, C_Order_CreatedBy, DateAcct, DatePrinted, c_order_datepromised, DeliveryRule, DeliveryViaRule, c_order_description, DocAction, DocStatus, DocumentNo, DropShip_BPartner_ID, DropShip_Location_ID, DropShip_User_ID, c_order_freightamt, FreightCostRule, GrandTotal, InvoiceRule, c_order_isactive, IsApproved, IsCreditApproved, IsDelivered, c_order_isdiscountprinted, c_order_isdropship, IsInvoiced, IsPayScheduleValid, IsPrinted, IsSelected, c_order_isselfservice, IsSOTrx, IsTaxIncluded, IsTransferred, Link_Order_ID, C_Order_M_FreightCategory_ID, C_Order_M_PriceList_ID, C_Order_M_Shipper_ID, C_Order_M_Warehouse_ID, OrderType, Pay_BPartner_ID, Pay_Location_ID, c_order_paymentrule, POReference, Posted, PriorityRule, c_order_processed, ProcessedOn, PromotionCode, Ref_Order_ID, SalesRep_ID, c_order_sendemail, TotalLines, c_order_updated, C_Order_UpdatedBy, C_Order_User1_ID, C_Order_User2_ID, c_order_volume, c_order_weight, M_Product_AD_Org_ID, Classification, m_product_copyfrom, m_product_created, M_Product_CreatedBy, C_RevenueRecognition_ID, C_SubscriptionType_ID, C_TaxCategory_ID, M_Product_C_UOM_ID, DescriptionURL, m_product_discontinued, m_product_discontinuedat, Group1, Group2, GuaranteeDays, GuaranteeDaysMin, Help, m_product_isactive, IsBOM, m_product_isdropship, IsExcludeAutoDelivery, IsInvoicePrintDetails, IsPickListPrintDetails, IsPurchased, m_product_isselfservice, IsSold, IsStocked, m_product_issummary, IsVerified, IsWebStoreFeatured, LowLevel, M_AttributeSet_ID, M_AttributeSetInstance_ID, M_Product_M_FreightCategory_ID, M_Locator_ID, M_Product_Product_Category_ID, m_product_processing, ProductType, R_MailText_ID, M_Product_SalesRep_ID, S_ExpenseType_ID, ShelfDepth, ShelfHeight, ShelfWidth, S_Resource_ID, UnitsPerPack, UnitsPerPallet, m_product_updated, M_Product_UpdatedBy, VersionNo, m_product_volume, m_product_weight, M_Product_PO_AD_Org_ID, M_Product_PO_C_BPartner_ID, M_Product_PO_C_Currency_ID, CostPerOrder, m_product_po_created, M_Product_PO_CreatedBy, M_Product_PO_C_UOM_ID, DeliveryTime_Actual, DeliveryTime_Promised, m_product_po_discontinued, m_product_po_discontinuedat, m_product_po_isactive, IsCurrentVendor, m_product_po_manufacturer, M_Product_PO_M_Product_ID, Order_Min, Order_Pack, PriceEffective, PriceLastInv, PriceLastPO, m_product_po_pricelist, PricePO, m_product_po_qualityrating, RoyaltyAmt, m_product_po_upc, m_product_po_updated, M_Product_PO_UpdatedBy, m_product_po_vendorcategory, S_ResourceAssignm
;