File tree Expand file tree Collapse file tree 5 files changed +23
-0
lines changed
src/Functions/InventoryControl Expand file tree Collapse file tree 5 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ export default abstract class AbstractItem extends AbstractFunction {
66
66
public numberOfPeriods : number ;
67
67
public proratePriceAllowed : boolean ;
68
68
public defaultRenewalMacroId : string ;
69
+ public warehouseId : string ;
69
70
70
71
public customFields : Array < [ string , any ] > = [ ] ;
71
72
}
Original file line number Diff line number Diff line change @@ -41,5 +41,7 @@ export default abstract class AbstractWarehouse extends AbstractFunction {
41
41
42
42
public active : boolean ;
43
43
44
+ public vendorRecordNo : number ;
45
+
44
46
public customFields : Array < [ string , any ] > = [ ] ;
45
47
}
Original file line number Diff line number Diff line change @@ -86,6 +86,14 @@ export default class ItemCreate extends AbstractItem {
86
86
xml . writeElement ( "COMPUTEFORSHORTTERM" , this . proratePriceAllowed ) ;
87
87
xml . writeElement ( "RENEWALMACROID" , this . defaultRenewalMacroId ) ;
88
88
89
+ if ( this . warehouseId != null ) {
90
+ xml . writeStartElement ( "WAREHOUSEINFO" ) ;
91
+ xml . writeStartElement ( "ITEMWAREHOUSEINFO" ) ;
92
+ xml . writeElement ( "WAREHOUSEID" , this . warehouseId ) ;
93
+ xml . writeEndElement ( ) ; // ITEMWAREHOUSEINFO
94
+ xml . writeEndElement ( ) ; // WAREHOUSEINFO
95
+ }
96
+
89
97
xml . writeCustomFieldsImplicit ( this . customFields ) ;
90
98
91
99
xml . writeEndElement ( ) ; // ITEM
Original file line number Diff line number Diff line change @@ -82,6 +82,14 @@ export default class ItemUpdate extends AbstractItem {
82
82
xml . writeElement ( "COMPUTEFORSHORTTERM" , this . proratePriceAllowed ) ;
83
83
xml . writeElement ( "RENEWALMACROID" , this . defaultRenewalMacroId ) ;
84
84
85
+ if ( this . warehouseId != null ) {
86
+ xml . writeStartElement ( "WAREHOUSEINFO" ) ;
87
+ xml . writeStartElement ( "ITEMWAREHOUSEINFO" ) ;
88
+ xml . writeElement ( "WAREHOUSEID" , this . warehouseId ) ;
89
+ xml . writeEndElement ( ) ; // ITEMWAREHOUSEINFO
90
+ xml . writeEndElement ( ) ; // WAREHOUSEINFO
91
+ }
92
+
85
93
xml . writeCustomFieldsImplicit ( this . customFields ) ;
86
94
87
95
xml . writeEndElement ( ) ; // ITEM
Original file line number Diff line number Diff line change @@ -51,6 +51,10 @@ export default class WarehouseCreate extends AbstractWarehouse {
51
51
xml . writeEndElement ( ) ; // SHIPTO
52
52
}
53
53
54
+ if ( this . vendorRecordNo != null ) {
55
+ xml . writeElement ( "RVENDOR" , this . vendorRecordNo ) ;
56
+ }
57
+
54
58
xml . writeElement ( "USEDINGL" , this . usedInGeneralLedger ) ;
55
59
56
60
if ( this . active === true ) {
You can’t perform that action at this time.
0 commit comments